package com.seaboxdata.controller;

import com.seaboxdata.entity.Rkxx;
import com.seaboxdata.service.RkxxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author
 * @create 2021-04-12 14:40
 **/
@RestController
@EnableAutoConfiguration
@RequestMapping("/rkxx")
public class RkxxController {

    @Autowired
    private RkxxService rkxxService;

    @RequestMapping("/getRkxxById")
    public Map<String, Object> getRkxxById(@RequestBody Rkxx rkxx) {
        Map<String, Object> resultMap = new HashMap<String, Object>();
        resultMap.put("retCode", 0);
        resultMap.put("retMessage", "SUCCESS");
        resultMap.put("data",rkxxService.getRkxxById(rkxx));
        return resultMap;
    }
}
